package com.example.server.mapper;

import com.example.server.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    Book getBookById(int idbook);
    List<Book> getAllBooks();
    void insertBook(Book book);
    void updateBook(Book book);
    void deleteBook(int idbook);
}
